
<?php if (validation_errors()) : ?>
<div class="notification error">
	<?php echo validation_errors(); ?>
</div>
<?php endif; ?>
<?php // Change the css classes to suit your needs    
if( isset($match) ) {
	$match = (array)$match;
}
$id = isset($match['match_id']) ? "/".$match['match_id'] : '';
?>
<?php echo form_open($this->uri->uri_string(), 'class="constrained ajax-form"'); ?>
<?php if(isset($match['match_id'])): ?><input id="match_id" type="hidden" name="match_id" value="<?php echo $match['match_id'];?>"  /><?php endif;?>
<div>
        <?php echo form_label('League Team Id1', 'league_team_id1'); ?>
        <input id="league_team_id1" type="text" name="league_team_id1" maxlength="1000000" value="<?php echo set_value('league_team_id1', isset($match['league_team_id1']) ? $match['league_team_id1'] : ''); ?>"  />
</div>

<div>
        <?php echo form_label('League Team Id2', 'league_team_id2'); ?>
        <input id="league_team_id2" type="text" name="league_team_id2" maxlength="1000000" value="<?php echo set_value('league_team_id2', isset($match['league_team_id2']) ? $match['league_team_id2'] : ''); ?>"  />
</div>

<div>
        <?php echo form_label('Stadium Name', 'stadium_name'); ?>
        <input id="stadium_name" type="text" name="stadium_name" maxlength="45" value="<?php echo set_value('stadium_name', isset($match['stadium_name']) ? $match['stadium_name'] : ''); ?>"  />
</div>

<div>
        <?php echo form_label('Stadium Location', 'stadium_location'); ?>
        <input id="stadium_location" type="text" name="stadium_location" maxlength="45" value="<?php echo set_value('stadium_location', isset($match['stadium_location']) ? $match['stadium_location'] : ''); ?>"  />
</div>

<div>
        <?php echo form_label('Start Time Day', 'start_time_day'); ?>
        <input id="start_time_day" type="text" name="start_time_day" maxlength="1000000" value="<?php echo set_value('start_time_day', isset($match['start_time_day']) ? $match['start_time_day'] : ''); ?>"  />
</div>

<div>
        <?php echo form_label('Start Time Month', 'start_time_month'); ?>
        <input id="start_time_month" type="text" name="start_time_month" maxlength="1000000" value="<?php echo set_value('start_time_month', isset($match['start_time_month']) ? $match['start_time_month'] : ''); ?>"  />
</div>

<div>
        <?php echo form_label('Start Time Year', 'start_time_year'); ?>
        <input id="start_time_year" type="text" name="start_time_year" maxlength="1000000" value="<?php echo set_value('start_time_year', isset($match['start_time_year']) ? $match['start_time_year'] : ''); ?>"  />
</div>

<div>
        <?php echo form_label('Time Zone', 'time_zone'); ?>
        <input id="time_zone" type="text" name="time_zone" maxlength="45" value="<?php echo set_value('time_zone', isset($match['time_zone']) ? $match['time_zone'] : ''); ?>"  />
</div>

<div>
        <?php echo form_label('Score', 'score'); ?>
        <input id="score" type="text" name="score" maxlength="45" value="<?php echo set_value('score', isset($match['score']) ? $match['score'] : ''); ?>"  />
</div>

<div>
        <?php echo form_label('Start Time Hour', 'start_time_hour'); ?>
        <input id="start_time_hour" type="text" name="start_time_hour" maxlength="1000000" value="<?php echo set_value('start_time_hour', isset($match['start_time_hour']) ? $match['start_time_hour'] : ''); ?>"  />
</div>

<div>
        <?php echo form_label('Start Time Minute', 'start_time_minute'); ?>
        <input id="start_time_minute" type="text" name="start_time_minute" maxlength="1000000" value="<?php echo set_value('start_time_minute', isset($match['start_time_minute']) ? $match['start_time_minute'] : ''); ?>"  />
</div>

<div>
        <?php echo form_label('Start Time Second', 'start_time_second'); ?>
        <input id="start_time_second" type="text" name="start_time_second" maxlength="1000000" value="<?php echo set_value('start_time_second', isset($match['start_time_second']) ? $match['start_time_second'] : ''); ?>"  />
</div>



	<div class="text-right">
		<br/>
		<input type="submit" name="submit" value="Create match" /> or <?php echo anchor(SITE_AREA .'/developer/match', lang('match_cancel')); ?>
	</div>
	<?php echo form_close(); ?>
